package hn.cch.common.exchange;


import hn.cch.common.entity.ExchangeRecord;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.service.annotation.GetExchange;
import org.springframework.web.service.annotation.HttpExchange;
import org.springframework.web.service.annotation.PostExchange;

@HttpExchange(value = "/exchange")
public interface ExchangeInterface {

    @GetExchange("/{uuid}")
    public ExchangeRecord getExchangeRecord(@PathVariable(value = "uuid") String uuid);


    @PostExchange("/")
    public ExchangeRecord setExchangeRecord(@RequestBody ExchangeRecord exchangeRecord);

}
